/**
 * Created by Jack Xue on 20101120
 */
package org.code.jack.jweberp.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class Employee implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	private Long id;

	/**
	 * 雇员编号
	 */
	@Column(length = 20)
	private String sn;

	/**
	 * 雇员姓名
	 */
	@Column(length = 32, unique = true)
	private String userName;

	/**
	 * 性别
	 */
	// @ManyToOne
	// @POLoad(name = "sexId")
	// private SystemDictionaryDetail sex;

	/**
	 * 电子邮箱
	 */
	@Column(length = 50)
	private String email;

	/**
	 * 移动电话
	 */
	@Column(length = 25)
	private String mobileTel;
	/**
	 * 办公电话
	 */
	@Column(length = 25)
	private String officeTel;

	/**
	 * 雇员地址
	 */
	@Column(length = 100)
	private String address;
	/**
	 * 雇员简介
	 */
	@Column(length = 250)
	private String intro;

	/**
	 * 雇员评论
	 */
	@Column(length = 250)
	private String remark;

	/**
	 * 雇员状态
	 */
	private Integer status = 0;// -2回收站(删除) -1锁定、0未审核、1正常

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobileTel() {
		return mobileTel;
	}

	public void setMobileTel(String mobileTel) {
		this.mobileTel = mobileTel;
	}

	public String getOfficeTel() {
		return officeTel;
	}

	public void setOfficeTel(String officeTel) {
		this.officeTel = officeTel;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getRemark() {
		return remark;
	}

	// public SystemDictionaryDetail getSex() {
	// return sex;
	// }
	//
	// public void setSex(SystemDictionaryDetail sex) {
	// this.sex = sex;
	// }

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
